//
// Created by Sugars Mac on 2021/8/5.
//

#include <stdio.h>
#include <stdlib.h>

struct pkt {
    int seqnum;
    int acknum;
    int checksum;
    char payload[20];
};

int show(struct pkt packet) {
    printf("%d, %d, %d, %s\n", packet.seqnum, packet.acknum, packet.checksum, packet.payload);
    return 1;
}

int main() {
    struct pkt packet = {0,0,10, "hello"};
    show(packet);
    return 0;
}